#include "Terrain.h"
#include <windows.h>
#include <GL/gl.h>

CTerrain::CTerrain(void){}

void CTerrain::doRender(void)
{
	/*int sizeOfSquare=10;
	int numberOfSquare=m_size/2/sizeOfSquare;

	for(int i=0; i<numberOfSquare; i++)
	{
		for(int j=0; j<numberOfSquare; j++)
		{
			glPushMatrix();
				glBegin(GL_QUADS);
					glNormal3f(0, 1, 0);
					glVertex3f(-m_size/2+j*numberOfSquare, 0, -m_size/2+i*numberOfSquare);
					glVertex3f(-m_size/2+(j+1)*numberOfSquare, 0, -m_size/2+i*numberOfSquare);
					glVertex3f(-m_size/2+(j+1)*numberOfSquare, 0, -m_size/2+(i+1)*numberOfSquare);
					glVertex3f(-m_size/2+(j)*numberOfSquare, 0,  -m_size/2+(i+1)*numberOfSquare);		
				glEnd();
			glPopMatrix();
		}
	}*/
	glPushMatrix();
		glBegin(GL_QUADS);
			glNormal3f(0, 1, 0);
			glVertex3f(m_size/2, 0, -m_size/2);
			glVertex3f(m_size/2, 0, m_size/2);
			glVertex3f(-m_size/2, 0, m_size/2);
			glVertex3f(-m_size/2, 0, -m_size/2);		
		glEnd();
	glPopMatrix();
}

